#include"Date.h"

void Date::operator<<(ostream& out)
{
	out << _year << "-" << _month << "-" << _day << endl;
}


ostream& operator<<(ostream& out, const Date& d)
{
	out << d._year << "-" << d._month << "-" << d._day << endl;
	return out;
}

istream& operator>>(istream& in, Date& d)
{
	int year, month, day;
	in >> year >> month >> day;

	d._year = year;
	d._month = month;
	d._day = day;
	return in;
}
